#@layout()
#define main()
<!-- 内容区域 -->
<div class="aw-container-wrap">
	<div class="container">
		<div class="row">
			<div class="aw-content-wrap-new clearfix">
				<div class="col-sm-12 col-md-8 aw-main-content">
					<div class="aw-mod aw-topic-detail-title h-content">
						<div class="mod-body">
							<img src="/upload/comments/#(comments.images)"alt="#(comments.name)">
							<h2 class="pull-left">#(comments.name)</h2>
							<div class="aw-topic-operate text-color-999">
								#if(ret.isFavoriteActive == "active")
								<a href="javascript:;" class="follow btn btn-normal btn-success active" onclick="commentsFavorite('comments', #(comments.tid),false,this);" data-original-title="" title="">
									<span>取消关注</span>
									<em>|</em><b>#(ret.favoriteCount)</b>
								</a>
								#else
								<a href="javascript:;" class="follow btn btn-normal btn-success " onclick="commentsFavorite('comments', #(comments.tid),true,this);" data-original-title="" title="">
									<span>关注</span>
									<em>|</em><b>#(ret.favoriteCount)</b>
								</a>
								#end
							</div>
						</div>
					</div>
					<div class="aw-mod">
						<div class="mod-body">
							<div class="aw-common-list" id="c_all_list">
								#for(comments : commentsArticleList.getList())
								<div class="aw-item article h-content" >
									<div class="aw-question-content">
										<h4>
											<a href="/detail/#(comments.aid)">#(comments.title)
												#if(comments.is_hot==1)
												<span class="h-article-top">[置顶] </span>
												#end
											</a>
										</h4>
										<p>
											<span class="text-color-999">
												<img src="/upload/avatar/#(comments.avatar)" alt="#(comments.nickName)" class="h-content-avatar"/> <a href="/user/detail/#(comments.uid)" >#(comments.nickName)</a>
												<span>时间：#date(comments.addtime, "yyyy-MM-dd")</span>
												<span>评论：#(comments.replyCount)</span>
												<span>浏览：#(comments.views)</span>
                                                <span style="color: red">
                                                     #if(comments.is_pay==1)
                                                        积分：#(comments.points)
                                                    #end
                                                </span>
											</span>
										</p>
									</div>
								</div>
								#end
							</div>
						</div>
					</div>



						<div class="mod-footer">
				           <!-- 分页 -->
							<div class="page-control">
								#@paginate(commentsArticleList.pageNumber, commentsArticleList.totalPage, "/topic/detail/" + comments.tid + "?p=")
							</div>
						</div>

				</div>

				<!-- 侧边栏 -->
				<div class="col-sm-12 col-md-3 aw-side-bar">
					<!-- 话题描述 -->
					<div class="aw-mod aw-text-align-justify">
						<div class="mod-head">
							<h3>话题描述</h3>
						</div>
						<div class="mod-body">
							<p>#(comments.remarks)&nbsp;&nbsp;</p>
						</div>
					</div>
					<!-- end 话题描述 -->

					<!-- 最佳回复者 -->
					<div class="aw-mod">
						<div class="mod-head">
							<h3>关注该话题的用户</h3>
						</div>
						<div class="mod-body">
							#for(commentsUser : commentsUserList)
							<dl>
								<dt class="pull-left aw-border-radius-5">
									<a href="/user/detail/#(commentsUser.accountId)">
										<img src="/upload/avatar/#(commentsUser.avatar)" alt="#(commentsUser.nickName)">
									</a>
								</dt>
								<dd class="pull-left">
									<a class="aw-user-name" href="/user/detail/#(commentsUser.accountId)" data-id="#(commentsUser.accountId)">
										#(commentsUser.nickName)
										#if(commentsUser.is_auth == 1)<i class="icon-v" title="个人认证"></i>#end
									</a>
								</dd>
							</dl>
							#end
						</div>
					</div>

				</div>
				<!-- end 侧边栏 -->
			</div>
		</div>
	</div>
</div>
<!-- 内容区域end -->
#end
